package org.speed.mes.base.service;

import org.speed.mes.base.domain.BsProcessRoute;
import org.speed.mes.base.domain.vo.BsProcessRouteVo;
import org.speed.mes.base.domain.bo.BsProcessRouteBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 工艺路线Service接口
 *
 * @author speed-mes
 * @date 2024-06-19
 */
public interface IBsProcessRouteService {

    /**
     * 查询工艺路线
     */
    BsProcessRouteVo queryById(Long id);

    /**
     * 查询工艺路线列表
     */
    TableDataInfo<BsProcessRouteVo> queryPageList(BsProcessRouteBo bo, PageQuery pageQuery);

    /**
     * 查询工艺路线列表
     */
    List<BsProcessRouteVo> queryList(BsProcessRouteBo bo);

    /**
     * 新增工艺路线
     */
    Boolean insertByBo(BsProcessRouteBo bo);

    /**
     * 修改工艺路线
     */
    Boolean updateByBo(BsProcessRouteBo bo);

    /**
     * 校验并批量删除工艺路线信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
